package com.taobao.pet.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.taobao.org.domain.Department;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class PetType {
    private Long   id;
    private String name;
    private String description;
    private String dirPath;
    private Long pid;

    // 类型树最后一级没有数据就不显示
    // 下级宠物类型
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    List<PetType> children = new ArrayList<>();
}
